//
//  UIViewController+DHNavigationExtension.m
//  DHBase
//
//  Created by Calvin on 2017/8/11.
//  Copyright © 2017年 Calvin. All rights reserved.
//

#import "UIViewController+DHNavigationExtension.h"
#import <objc/runtime.h>


@implementation UIViewController (CustomNavigationExtension)

- (BOOL)Custom_fullScreenPopGestureEnabled {
    return [objc_getAssociatedObject(self, _cmd) boolValue];
}

- (void)setCustom_fullScreenPopGestureEnabled:(BOOL)fullScreenPopGestureEnabled {
    objc_setAssociatedObject(self, @selector(Custom_fullScreenPopGestureEnabled), @(fullScreenPopGestureEnabled), OBJC_ASSOCIATION_RETAIN);
}

- (DHNavigationController *)Custom_navigationController {
    return objc_getAssociatedObject(self, _cmd);
}

- (void)setCustom_navigationController:(DHNavigationController *)navigationController {
    objc_setAssociatedObject(self, @selector(Custom_navigationController), navigationController, OBJC_ASSOCIATION_ASSIGN);
}

@end
